clear
clear matrix

set more off
* Elliott
**cd "Z:\home\elliott\Dropbox\1Spring2016\TUP\data"

use "Endline/Agric&livestock.dta", clear

rename id HH

** Farming Values

rename s18_1 harvest_type
rename s18_2a harvest_size
rename s18_2b harvest_unit
rename s18_3a harvest_price
rename s18_3b harvest_price_unit
rename s18_4 harvest_sold

** Livestock Values

rename s18_5 livestock_type
rename s18_6a livestock_size
rename s18_6b livestock_unit
rename s18_7a livestock_price
rename s18_7b livestock_price_unit
rename s18_8 livestock_sold

disp "Observations with non-matching units"
count if harvest_unit!=harvest_price_unit

disp "savings Agriculture_cleaned.dta and letting this get processed in analysis"

save Endline/Agriculture_cleaned.dta, replace


